package com.udi.project.business.local.gs1.mapper;

import com.udi.project.business.local.gs1.domain.BeUsable;
import com.udi.project.business.local.gs1.domain.Gs1Data;
import com.udi.project.business.local.gs1.domain.SelGsMesVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Admin
 * GS1编码数据库交互
 */
@Mapper
public interface Gs1GenerateMapper {

    /**
    *
     * @Description: 修改use字段
     * @param code 只插入2[此DI码用于GS1生成]
     * @return: int
     * @Date: 2021/8/14 17:39
     */
    int updateiInformation(String code);

    /**
    *
     * @Description: 持久化UDI
     * @param Gs1
     * @return: int
     * @Date: 2021/8/17 9:16
     */
    int insertGs1(@Param("Gs1") List<Gs1Data> Gs1);

    int gsedit(@Param("data") List<SelGsMesVo> data);

    int gsdel(@Param("data") List<SelGsMesVo> data);

    /**
     * 取得全部标识符信息
     * @return
     */
    public List<Gs1Data> getaiInfo();
}
